Repository navigation
fix(admin): don't request update status when updates.tier is off - #8580
Conversation
The server does not register /admin/update/status when updates.tier is "off", but the admin banner and update page still requested it. The admin UI now reads the tier from the /settings socket payload (flags.updatesTier) and skips the request. It shows a notice instead: update notifications are off, so you may not hear about security updates, plus how to turn them back on (updates.tier / UPDATES_TIER) and a link to the docs. The troubleshooting page no longer shows "Update available: undefined" when privacy.updateCheck is false. Refs #8573 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TcYAoDMav4BPPE9JrMtSvw
|
ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing |
PR Summary by QodoAvoid admin update-status requests when updates are off
AI Description
Merge Risk
|
Code Review by Qodo
1.
|
Address review findings on #8580: - the /settings socket emits `updatesTier` on connect, so the update UI still gets the tier when settings.json can't be read and `load` emits nothing - the update page's in-flight polling stops when the tier is "off", and a status request started before that can't overwrite the notice Refs #8573 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TcYAoDMav4BPPE9JrMtSvw
Refs #8573 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TcYAoDMav4BPPE9JrMtSvw
…ates-off # Conflicts: # CHANGELOG.md
Refs #8573. This is a follow-up to #8579, which does the same for the pad client. It does not depend on that PR.
When
updates.tieris"off"the server does not register/admin/update/status, but the admin banner and update page still requested it. Because of the admin SPA catch-all, that request came back as HTML with a 200, so the update page showed "Could not load update status".The tier now comes with the existing
/settingssocket payload asflags.updatesTier, next togdprAuthorErasure. The banner and update page wait for it, and if the tier is"off"they never call the status route. I chose this over keeping the route registered and returning{tier:'off'}for three reasons:With the tier off, admins see a non-alarming notice instead. It says update notifications are off, so you may not hear about security updates, and explains how to turn them back on:
updates.tierin settings.json, orUPDATES_TIER. It also links to the update docs. The banner can be dismissed for the browser session. The update page always shows the notice.privacy.updateCheck: falsemade the troubleshooting page say "Update available: undefined". The help payload now includesversionCheck, and when it is off the page says the latest-version check is off.Other changes:
update.off.*andadmin_plugins_info.version_check_off. The existingupdate.page.disabledkey is reused as the notice heading./adminin the bundle into<proxy>/admin, which would break an externaldocs.etherpad.org/admin/...link. A test covers this.flags.updatesTieron every tier, including the hidden-settings case, and forversionCheck. A Playwright admin spec checks that no request goes to/admin/update/status, that the notice and dismiss work, that the help page is right, and that the docs link survives the proxy rewrite.doc/admin/updates.md) and a CHANGELOG 3.3.23 entry. fix: skip client version check when updates tier is off #8579 also creates the 3.3.23 section, so whichever PR merges second needs a trivial merge.🤖 Generated with Claude Code
https://claude.ai/code/session_01TcYAoDMav4BPPE9JrMtSvw